package com.example.activity;

import android.app.Activity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Rain on 2016/4/15.
 */
public class Globals {
    public static int SCREEN_WIDTH;
    public static int SCREEN_HEIGHT;
    public static Map<String,Integer> imgs;
    public static void init(Activity a){
        SCREEN_WIDTH = a.getWindowManager().getDefaultDisplay().getWidth();
        SCREEN_HEIGHT = a.getWindowManager().getDefaultDisplay().getHeight();
        imgs = new HashMap<>();
        imgs.put("file",R.drawable.file);
        imgs.put("tool", R.drawable.open_tool);
        imgs.put("mp3",R.drawable.music);
        imgs.put("jpg",R.drawable.phote);
        imgs.put("gif",R.drawable.phote);
        imgs.put("png",R.drawable.phote);
        imgs.put("db",R.drawable.db);

    }

}
